<h1><%= t('.title')%></h1>

<table class="table table-striped">
  <tr>
    <th><%= t('.name') %></th>
    <th><%= t('.description') %></th>
    <th></th>
  </tr>

<% @categories.each do |category| %>
  <tr>
    <td><%= category.name %></td>
    <td><%= category.description %></td>
    <td>
    	<div class="btn-group">
    		<%= link_to t('global_button_show'), category, :class => 'btn' %>
    		<%= link_to t('global_button_edit'), edit_category_path(category), :class => 'btn' %>
    		<%= link_to t('global_button_delete'), category, :class => 'btn', confirm: t('global_button_delete'), method: :delete %>
    	</div>
    </td>
  </tr>
<% end %>
</table>

<br />

<%= link_to t('global_button_new'), new_category_path, :class => 'btn' %>
